﻿package ygg.encoding.swf.abc.constant
{
	public class TraitKind
	{
		public static const SLOT		:int = 0x00;
		public static const METHOD		:int = 0x01;
		public static const GETTER		:int = 0x02;
		public static const SETTER		:int = 0x03;
		public static const CLASS		:int = 0x04;
		public static const FUNCTION	:int = 0x05;
		public static const CONST		:int = 0x06;
		
		
		public static const traitKinds:Array = [
				"var", "function", "function get", "function set", "class", "function", "const"
			]
		
		public static function getName(u:uint):String
		{
			return traitKinds[u];
		}
	}
}